﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="appleader_projects_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>浏览评估模型</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                
                SelectCommand="SELECT project.projectname, project.creator, project.createdtime, model.modelname, method.methodname, project.starttime, project.endtime, project.state, project.description, project.projectid FROM model INNER JOIN project ON model.modelid = project.modelid INNER JOIN method ON project.methodid = method.methodid WHERE (project.organizationid = @organizationid) AND (project.state = @state) ORDER BY project.createdtime DESC">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" />
                    <asp:Parameter DefaultValue="在评的" Name="state" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" 
                ForeColor="#333333" GridLines="None" Width="100%" PageSize="5">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                        DataNavigateUrlFormatString="addmission.aspx?projectid={0}" 
                        DataTextField="projectname" HeaderText="项目名称" ItemStyle-Font-Size="13px" ItemStyle-ForeColor="Red">
                        <ItemStyle Width="170px" />
                    </asp:HyperLinkField>
                    <asp:BoundField DataField="creator" HeaderText="创建者" SortExpression="creator" ItemStyle-HorizontalAlign="Center">
                        <ItemStyle Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="createdtime" HeaderText="创建时间" 
                        SortExpression="createdtime" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="modelname" HeaderText="模型名称" 
                        SortExpression="modelname" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="methodname" HeaderText="方法名称" 
                        SortExpression="methodname" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                        SortExpression="starttime" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="endtime" HeaderText="结束时间" 
                        SortExpression="endtime" ItemStyle-HorizontalAlign="Center" >
                        <ItemStyle Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="description" HeaderText="描述" 
                        SortExpression="description" >
                        <ItemStyle Width="120px" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
        
    </div>
    </form>
</body>
</html>
